// public 实例、继承任何地方都能访问
// private 实例、继承都不能访问
// protected 实例不能访问，继承可以访问
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var Person = /** @class */ (function () {
    function Person() {
        this.name = 'jspang';
    }
    Person.prototype.sayHello = function () {
        console.log(this.name + ' say Hello');
    };
    return Person;
}());
var Teacher = /** @class */ (function (_super) {
    __extends(Teacher, _super);
    function Teacher() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Teacher.prototype.sayBye = function () {
        console.log(this.name + 'say Bye');
    };
    return Teacher;
}(Person));
var person = new Teacher();
// person.name = 'jspang'
// console.log(person.name)
person.sayHello();
person.sayBye();
console.log(1);
